package ics.nodes.event;

import ics.Node;
import ics.nodes.Constants;

public class Description extends Node {
    public Description(String value) {
        setName(Constants.DESCRIPTION);
        setValue(value);
    }

    @Override
    public String toString() {
        StringBuffer stringBuffer = new StringBuffer();
        stringBuffer.append(getName().toUpperCase());
        stringBuffer.append(":");
        stringBuffer.append("\n");
        String[] args = getValue().split("\n");
        for (String str : args) {
            stringBuffer.append(" ");
            stringBuffer.append(str);
            stringBuffer.append("\n");
        }
        stringBuffer.delete(stringBuffer.length() - 1, stringBuffer.length());
        return stringBuffer.toString();
    }
}
